-- GENERATED SPELL FOR [Stalagg] --


function spell0_15929(pUnit, Event) --@Power Surge,Self--
pUnit:FullCastSpellOnTarget(28134,pUnit)
pUnit:RegisterEvent('Sorts_15929', 10347, 1)
end

function spell1_15929(pUnit, Event) --@Power Surge,Self--
pUnit:FullCastSpellOnTarget(54529,pUnit)
pUnit:RegisterEvent('Sorts_15929', 10263, 1)
end

function Sorts_15929(pUnit, Event)
local choix_sorts_15929 = math.random(0, 1)
if choix_sorts_15929 == 0 then
pUnit:RegisterEvent('spell0_15929', 1, 1)
end
if choix_sorts_15929 == 1 then
pUnit:RegisterEvent('spell1_15929', 1, 1)
end
end

function mob15929_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15929', math.random(1500, 3000), 1)
end

function mob15929_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15929_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15929_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15929, 1, 'mob15929_Action')
RegisterUnitEvent(15929, 2, 'mob15929_Leave')
RegisterUnitEvent(15929, 3, 'mob15929_Kill')
RegisterUnitEvent(15929, 4, 'mob15929_Die')
